package com.woniuxy.cloud.userassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.cloud.entity.TGoodCar;
import com.woniuxy.cloud.entity.TServiceCar;
import com.woniuxy.cloud.entity.TUser;
import com.woniuxy.cloud.form.AddServiceCarForm;

import java.util.List;


/**
 * <p>
 * 服务项目购物车表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-09-24
 */
public interface ITServiceCarService extends IService<TServiceCar> {


    //根据服务购物车id查询
    TServiceCar getServiceCarByServiceCarId(Integer serviceCarServiceId);

    //新增服务购物车
    Integer insertServiceCar(TServiceCar tServiceCar);


    //修改服务购物车服务数量
    Integer updateServiceCarNum(Integer serviceCarId,Integer serviceCarNum,Double total);

    //移除服务购物车
    Integer deleteServiceCar(Integer serviceCarUserId);

    //获取服务购物车列表
    List<TServiceCar> getServiceCarList(Integer serviceCarUserId);

    List<TServiceCar> getServiceCarListByIds(List<Integer> ids);

    //查询服务购物车是否重复
    TServiceCar getServiceCarByUserIdAndServceId(Integer userId,Integer serviceCarSecondServiceId);
}
